home *** CD-ROM | disk | FTP | other *** search
- function NOF_DataObjects_OptionGroupsTable(){
- this.__proto__ = NOF_DataObjects_OptionGroupsTable.prototype;
-
- this.SUPER( NOF_TableTypes.NODELESS | NOF_TableTypes.ECOMM_CATALOG, "OptionGroups", "Id");
- this.__constructor__ = NOF_DataObjects_OptionGroupsTable;
- }
-
- NOF_DataObjects_OptionGroupsTable.inherits( NOF.DO.Table ); function NOF_DataObjects_OptionGroupsTable_ProtoBuilder(){
- var NOF_DataObjects_OptionGroupsTable_DDL = new Array(
- new NOF.DO.FieldInfo("Id", NOF.DO.FieldType.INTEGER, 0),
- new NOF.DO.FieldInfo("Name", NOF.DO.FieldType.VARCHAR, 1),
- new NOF.DO.FieldInfo("Label", NOF.DO.FieldType.VARCHAR, 2),
- new NOF.DO.FieldInfo("Position", NOF.DO.FieldType.INTEGER, 3),
- new NOF.DO.FieldInfo("Sorted",NOF.DO.FieldType.VARCHAR, 4)
- );
-
- var method = NOF_DataObjects_OptionGroupsTable.prototype;
-
- method.COL_ID = 0;
- method.COL_NAME = 1;
- method.COL_LABEL = 2;
- method.COL_POSITION = 3;
- method.COL_SORTED = 4;
-
- method.getDDL = function getDDL(){
- return NOF_DataObjects_OptionGroupsTable_DDL;
- };
-
- method.selectById = function selectById( id ){
- return this.selectByFields( [new NOF.DO.FieldValue ("Id", id)]);
- };
-
- method.deleteById = function deleteById( id ){
- return this.deleteByFields ([new NOF.DO.FieldValue ("Id", id)]);
- };
-
- method.selectByName = function selectByName( name ){
- return this.selectByFields( [new NOF.DO.FieldValue ("Name", name)]);
- };
-
- method.updateById = function updateById( id, fields ){
- return this.updateByFields( [new NOF.DO.FieldValue ("Id", id)], fields);
- };
-
- }
-
- NOF_DataObjects_OptionGroupsTable_ProtoBuilder();
-